package com.weipt.hello;

/**
 * @program: Learning
 * @description:
 * @Company: 汇华(北京)信息咨询服务有限公司
 * @author: peter.wei
 * @create: 2020-07-25 10:12
 **/
public class HelloThread {
    public static void main(String[] args) {
        new MyThread().start();
        System.out.println(Thread.currentThread().getName());
    }


}

class MyThread extends Thread{
    @Override
    public void run(){
        System.out.println(Thread.currentThread().getName());
    }
}